﻿using System;
using System.Collections.Generic;
using System.Text;

namespace taobao
{
    //API文档 -- http://open.taobao.com/dev/index.php/API2.0:Taobao.shop.remainshowcase.get

    /*
     * ---------示例代码-------------
        taobao.shop.remainshowcase showcase = new taobao.shop.remainshowcase();
        showcase.PutGet.session = taobao.Client.GetSession;
        taobao.Shop.Remainshowcase.GetOut getShowCase = showcase.get();
        Response.Write(getShowCase.ToJSONString());
     */

    public class shop
    {
        /// <summary>
        /// taobao.shop.remainshowcase.get(获取卖家店铺剩余橱窗数量) 
        /// <para>----【示例代码】--- API2.0：</para>
        /// <para>taobao.shop.remainshowcase showcase = new taobao.shop.remainshowcase();</para>
        /// <para>showcase.PutGet.session = taobao.Client.GetSession;</para>
        /// <para>taobao.Shop.Remainshowcase.GetOut getShowCase = showcase.get();</para>
        /// <para>Response.Write(getShowCase.ToJSONString());</para>
        /// </summary>
        public class remainshowcase : taobao.Util.BaseObject
        {
            private taobao.Shop.Remainshowcase.GetPut _putGet = new taobao.Shop.Remainshowcase.GetPut();
            /// <summary>
            /// taobao.shop.remainshowcase.get(获取卖家店铺剩余橱窗数量) --- API应用级输入参数 API2.0 
            /// <para>必填参数：session</para>
            /// </summary>
            public taobao.Shop.Remainshowcase.GetPut PutGet
            {
                set { _putGet = value; }
                get { return _putGet; }
            }

            /// <summary>
            /// taobao.shop.remainshowcase.get(获取卖家店铺剩余橱窗数量)
            /// </summary>
            /// <returns></returns>
            public string getToXml()
            {
                Dictionary<string, string> puts = taobao.Util.Convert.ToPut(PutGet);
                puts.Add("sign", SignTopRequest2(puts));
                return DoPost(puts);
            }

            /// <summary>
            /// taobao.shop.remainshowcase.get(获取卖家店铺剩余橱窗数量)
            /// </summary>
            /// <returns></returns>
            public taobao.Shop.Remainshowcase.GetOut get()
            {
                taobao.Shop.Remainshowcase.GetOut outGet = new taobao.Shop.Remainshowcase.GetOut();
                string strXml = getToXml();
                XmlToObject2(strXml, "shop_remainshowcase_get", "shop", outGet, outGet.error_rsp);
                return outGet;
            }
        }
    }
}
